from django.conf.urls import url
from rest_framework import routers

from store import views
from store.views import StoreUnbindingAndEmpowerViewSet, GetTrueFinanceViewSet

urlpatterns = [
    url(r"^storelist/$", views.GetStoreList.as_view()),
    url(r"^newstoreadd/$", views.NewStoreAdd.as_view()),
    url(r"^updatestoreinfo/$", views.UpdateStoreInfo.as_view()),
    url(r"^deletestore/$", views.DeleteStore.as_view()),
    url(r"^storenames/$", views.StorenameExist.as_view()),
    url(r"^storenamelist/$", views.GetStoreNameList.as_view()),
    url(r"^unbinding/$", StoreUnbindingAndEmpowerViewSet.as_view({'get': 'unbinding'})),
    url(r"^lotunbinding/$", StoreUnbindingAndEmpowerViewSet.as_view({'post': 'lot_unbinding'})),
    url(r"^empower/$", StoreUnbindingAndEmpowerViewSet.as_view({'get': 'empower'})),
    url(r"^lotempower/$", StoreUnbindingAndEmpowerViewSet.as_view({'post': 'lot_empower'})),

    url(r"^updatestorefinance/$", GetTrueFinanceViewSet.as_view({'get': 'update_finance'})),
    url(r"^getstorefinance/$", GetTrueFinanceViewSet.as_view({'get': 'get_finance_list'})),
]

